#pragma once

#include "../umlmodel_global.h"

#include "UMLCompartmentableShape.h"

namespace uml {
class State;

/// <summary>
/// UMLStateShape
/// </summary>
class UMLMODEL_EXPORT UMLStateShape : public UMLCompartmentableShape {

public: // Constructors and destructors
    explicit UMLStateShape(const QString& umlType="uml::UMLStateShape");

public: // JsonSerializable override
    void fromJson(const QJsonObject& json, QStringList& errorList) override;
    void toJson(QJsonObject& json) override;

public: // Properties
    /// <summary>
    /// isTabbed getter
    /// </summary>
    bool isTabbed() const;

    /// <summary>
    /// isTabbed setter
    /// </summary>
    void setIsTabbed(bool value);

    /// <summary>
    /// modelElements getter
    /// </summary>
    vector<shared_ptr<State>>& modelElements();

private: // Fields
    /// <summary>
    /// isTabbed
    /// </summary>
    const static bool isTabbed_default_;
    bool isTabbed_= isTabbed_default_;

    /// <summary>
    /// modelElements
    /// </summary>
    vector<shared_ptr<State>> modelElements_;

};

} // namespace uml
